{include file="common:header_public" /}
{block name="cssjs"}{/block}
</head>
<body class="skin-blue" data-spy="scroll" data-target="#scrollspy">
<script type="text/javascript">admincpInit();</script>
<div class="wrapper">
<header class="main-header">
  	<a href="{:url('Admin/Backstage/index')}" class="logo">
    	蓝天采集器
  	</a>
  	<nav class="navbar navbar-static-top" role="navigation">
		<a href="#" class="sidebar-toggle" data-toggle="push-menu" role="button">
	    	<span class="sr-only"> </span>
	    	<span class="icon-bar"></span>
	    	<span class="icon-bar"></span>
	    	<span class="icon-bar"></span>
	    </a>
		<div class="navbar-custom-menu">
		<ul class="nav navbar-nav">
			<li class="dropdown tasks-menu">
				<a href="javascript:;" id="menu_backstage_task">
            		<i class="fa fa-flag-o"></i>
            		<span class="label label-warning"></span>
            	</a>
			</li>
			<li class="dropdown user user-menu">
        		<a href="#" class="dropdown-toggle" data-toggle="dropdown">
            		<span class="glyphicon glyphicon-user"></span>
              		<span>{:g_sc('user','username')}</span>
            	</a>
            	<ul class="dropdown-menu">
            		<li><a href="{:url('User/edit?uid='.g_sc('user','uid'))}">{$Think.lang.user_edit}</a></li>
				  	<li><a href="{:url('Admin/Index/logout')}">{$Think.lang.logout}</a></li>
          		</ul>
			</li>
		</ul>
		</div>
	</nav>
</header>
{php}$curMenu=array(strtolower(request()->controller())=>' menu-open cur-menu');{/php}
{php}$curSubm=array(strtolower(request()->action())=>' menu-open cur-menu');{/php}
<aside class="main-sidebar">
<section class="sidebar">
<ul class="sidebar-menu" data-widget="tree">
	<li class="treeview{$curMenu['setting']}">
		<a href="#">
			<i class="fa fa-cog"></i> <span>{$Think.lang.setting}</span>
			<span class="pull-right-container">
				<i class="fa fa-angle-left pull-right"></i>
			</span>
		</a>
		<ul class="treeview-menu">
			<li><a href="{:url('Admin/Setting/caiji')}"><i class="fa fa-circle-o"></i> {$Think.lang.setting_caiji}</a></li>
			<li><a href="{:url('Admin/Setting/site')}"><i class="fa fa-circle-o"></i> {$Think.lang.setting_site}</a></li>
			<li><a href="{:url('Admin/Setting/store')}"><i class="fa fa-circle-o"></i> {$Think.lang.setting_store}</a></li>
			<li><a href="{:url('Admin/Setting/email')}"><i class="fa fa-circle-o"></i> {$Think.lang.setting_email}</a></li>
		</ul>
	</li>
   	<li class="treeview{$curMenu['task']}{$curMenu['taskgroup']}{$curMenu['collector']}{$curMenu['release']}">
       	<a href="#">
       		<i class="fa fa-tasks"></i> <span>{$Think.lang.task}</span>
      		<span class="pull-right-container">
       			<i class="fa fa-angle-left pull-right"></i>
      		</span>
       	</a>
		<ul class="treeview-menu">
			<li><a href="{:url('Admin/Task/list')}"><i class="fa fa-circle-o"></i> {$Think.lang.task_list}</a></li>
			<li><a href="{:url('Admin/Task/add')}"><i class="fa fa-circle-o"></i> {$Think.lang.task_add}</a></li>
			<li class="treeview{$curMenu['taskgroup']}">
				<a href="#"><i class="fa fa-circle-o"></i> {$Think.lang.taskgroup}
				<span class="pull-right-container">
				<i class="fa fa-angle-left pull-right"></i>
				</span>
				</a>
				<ul class="treeview-menu">
					<li><a href="{:url('Taskgroup/list')}"><i class="fa fa-circle-o"></i> {$Think.lang.taskgroup_list}</a></li>
					<li><a href="{:url('Taskgroup/add')}"><i class="fa fa-circle-o"></i> {$Think.lang.taskgroup_add}</a></li>
				</ul>
			</li>
		</ul>
    </li>
	<li class="treeview{$curMenu['store']}{$curMenu['mystore']}{$curMenu['provider']}">
		<a href="#">
			<i class="fa fa-cloud"></i> <span>云端</span>
			<span class="pull-right-container">
				<i class="fa fa-angle-left pull-right"></i>
			</span>
		</a>
		<ul class="treeview-menu">
			<li><a href="{:url('Admin/Mystore/store')}" target="_blank"><i class="fa fa-circle-o"></i> 云平台</a></li>
			<li><a href="{:url('Admin/Provider/list')}"><i class="fa fa-circle-o"></i> 第三方</a></li>
			<li class="treeview menu-open">
				<a href="#"><i class="fa fa-circle-o"></i> 已下载
				<span class="pull-right-container">
					<i class="fa fa-angle-left pull-right"></i>
				</span>
				</a>
				<ul class="treeview-menu" style="display:block;">
					<li><a href="{:url('Admin/Mystore/rule')}"><i class="fa fa-circle-o"></i> 采集规则</a></li>
					<li><a href="{:url('Admin/Mystore/releaseApp')}"><i class="fa fa-circle-o"></i> 发布插件</a></li>
					<li><a href="{:url('Admin/Mystore/funcApp')}"><i class="fa fa-circle-o"></i> 函数插件</a></li>
					<li><a href="{:url('Admin/Mystore/app')}"><i class="fa fa-circle-o"></i> 应用程序</a></li>
				</ul>
			</li>
		</ul>
	</li>
	<li class="treeview{$curMenu['collected']}">
		<a href="#">
			<i class="fa fa-database"></i> <span>{$Think.lang.collected}</span>
			<span class="pull-right-container">
				<i class="fa fa-angle-left pull-right"></i>
			</span>
		</a>
		<ul class="treeview-menu">
			<li><a href="{:url('Admin/Collected/list')}"><i class="fa fa-circle-o"></i> 数据列表</a></li>
			<li><a href="{:url('Admin/Collected/chart')}"><i class="fa fa-circle-o"></i> 统计图表</a></li>
		</ul>
	</li>
	<li class="treeview{$curMenu['user']}">
		<a href="#">
			<i class="fa fa-user"></i> <span>{$Think.lang.user}</span>
			<span class="pull-right-container">
				<i class="fa fa-angle-left pull-right"></i>
			</span>
		</a>
		<ul class="treeview-menu">
			<li><a href="{:url('Admin/User/list')}"><i class="fa fa-circle-o"></i> {$Think.lang.user_list}</a></li>
		</ul>
	</li>
	<li class="treeview{$curMenu['develop']}{$curMenu['tool']}">
		<a href="#">
			<i class="fa fa-wrench"></i> <span>工具&amp;开发</span>
			<span class="pull-right-container">
				<i class="fa fa-angle-left pull-right"></i>
			</span>
		</a>
		<ul class="treeview-menu">
			<li class="treeview{$curMenu['develop']}">
				<a href="#"><i class="fa fa-circle-o"></i> 开发
				<span class="pull-right-container">
					<i class="fa fa-angle-left pull-right"></i>
				</span>
				</a>
				<ul class="treeview-menu">
					<li><a href="{:url('Admin/Develop/releaseCms')}"><i class="fa fa-circle-o"></i> CMS发布插件</a></li>
					<li><a href="{:url('Admin/Develop/func')}"><i class="fa fa-circle-o"></i> 函数插件</a></li>
					<li><a href="{:url('Admin/Develop/app')}"><i class="fa fa-circle-o"></i> 应用程序</a></li>
				</ul>
			</li>
			<li><a href="{:url('Admin/Tool/fileManager')}"><i class="fa fa-circle-o"></i> 文件管理</a></li>
			<li><a href="{:url('Admin/Tool/json_tree')}"><i class="fa fa-circle-o"></i> JSON解析</a></li>
			<li><a href="{:url('Admin/Tool/logs')}"><i class="fa fa-circle-o"></i> 错误日志</a></li>
			<li class="treeview{$curSubm['checkfile']}{$curSubm['checkdb']}">
				<a href="#"><i class="fa fa-circle-o"></i> 校验
				<span class="pull-right-container">
					<i class="fa fa-angle-left pull-right"></i>
				</span>
				</a>
				<ul class="treeview-menu">
					<li><a href="{:url('Admin/Tool/checkfile')}"><i class="fa fa-circle-o"></i> 文件</a></li>
					<li><a href="{:url('Admin/Tool/checkdb')}"><i class="fa fa-circle-o"></i> 数据库</a></li>
				</ul>
			</li>
			
			<li class="treeview">
				<a href="#" id="treeview_skins"><i class="fa fa-circle-o"></i> {$Think.lang.admincp_style}
				<span class="pull-right-container">
					<i class="fa fa-angle-left pull-right"></i>
				</span>
				</a>
				<ul class="treeview-menu treeview-skins" style="display:none;">
					<li>
						<div class="checkbox"><label><input id="chk_sidebar_mini" type="checkbox"> {$Think.lang.admincp_sidebar_mini}</label></div>
					</li>
					<li>
						<div id="sidebar_skins"></div>
					</li>
				</ul>
			</li>
		</ul>
	</li>
</ul>
</section>
</aside>
<div class="content-wrapper">
	<section class="content-header">
	<h1>{:g_sc('p_name')}</h1>
	<ol class="breadcrumb">
		<li><a href="{:url('Admin/Backstage/index')}"><i class="fa fa-dashboard"></i> {$Think.lang.admincp}</a></li>
		{:g_sc('p_nav')}
	</ol>
	</section>
	<section class="content">
	{block name="content"}
	{/block}
	</section>
</div>
{include file="common:footer" /}